package com.kabao.demo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class DemoController {
    @PostMapping("/index")
    public String index(@RequestBody String  body){
        System.out.println("body = " + body);
        return "index";
    }
}